// vue-cli的配置文件

// 用于移动浏览器的调试插件
const ErudaWebpackPlugin = require('eruda-webpack-plugin')

module.exports = {
  publicPath: './',
  configureWebpack: {
    plugins: [
      process.env.NODE_ENV === 'development'
        ? new ErudaWebpackPlugin()
        : () => {}
    ]
  },
  css: {
    loaderOptions: {
      less: {
        // less 的全局变量
        globalVars: {
          'geek-color': '#FC6627',
          'geek-gray-color': '#F7F8FA'
        }
      }
    }
  }
}
